﻿using CatUtils.Utils.Currency.IoUtils;
using CatUtils.Utils.SpecialUtils.View;
using Image_Porn_Identification.UserTool;
using Image_Porn_Identification.UserView;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Image_Porn_Identification
{
    public partial class MainValue : Form
    {
        public MainValue()
        {
            InitializeComponent();

            new ViewAsyncUpdate().ComboBoxAddItemList(CbMain, ViewManger.Name.MainList);
            new ViewInfoMemory().InitComboboxSaveInfo(CbMain);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            FloderHelper.OpenFloder(".\\");
        }

        private void CbMain_SelectedIndexChanged(object sender, EventArgs e)
        {
            new ViewInfoMemory().SaveComboBoxInfo(CbMain);
            ViewManger.Replace(MainGroupbox, CbMain.Text);
        }
    }
}